package com.jy.appmarket.network.engine;

import java.util.Map;

import android.content.Context;

import com.jy.appmarket.network.resultdata.ApkCommentResult;

public class ApkCommentEngine extends BaseNetEngine {

	private String mPackageName;
	private int mVersionCode;
	private int mPage = 1;

	public ApkCommentEngine(String pn, int versionCode, int page) {
		mPackageName = pn;
		mVersionCode = versionCode;
		mPage = page;
		mResultData = new ApkCommentResult();
		mHttpMethod = HTTP_GET;
	}

	@Override
	protected String getCommand() {
		return "get_comment";
	}

	@Override
	protected void getParams(Context context, Map<String, String> custParams) {
		custParams.put("pageNo", String.valueOf(mPage));
		custParams.put("packageName", mPackageName);
		custParams.put("versionCode", String.valueOf(mVersionCode));
	}
}
